<%--
  Created by IntelliJ IDEA.
  User: Dowson
  Date: 2020/3/7
  Time: 15:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%
        Cookie[] cookies = request.getCookies();
        for (Cookie cookie : cookies) {
            out.println(cookie.getName()+"="+cookie.getValue());
        }
    %>
</head>
<body>
用户名：<input type="text" value="${cookie.userName.value}">
</body>
</html>
